﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <div>
        <div ng-repeat="p in data">
            <div ng-click="doEdit(p)">
                {{p.FirstName}}&nbsp;{{p.LastName}}
            </div>
        </div>
       
    </div>
    <script>
        var scope = this;
        ngW8.$("$ws")("human/list/human_Persons/")
        .success(function (res) {
            scope.data = res.Data;
            scope.$apply();
        }).get();
        scope.doEdit = function (item) {
            scope.$root.$window(scope, "/views/hrm_application/Categories.Human_Persons.edit.html", function (editScope) {
                console.log(editScope)
                editScope.loadPerson(item.PersonID);
            });
        }
    </script>
</body>
</html>
